package threadDemo07;

public class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            System.out.println(getName());
            //表示让出当前cpu的执行权
            Thread.yield();//出让线程
        }
    }
}
